home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 34.zip
/
BS1 part 34
/
FredFish PD 308.adf
/
StarBlanker
/
src
/
Source.notes
< prev
next >
Wrap
Text File
|
1990-01-18
|
2KB
|
49 lines
Source Notes for StarBlanker version 1.0
----------------------------------------
- The Detach runtime module is not by me, nor has it been okayed for
distribution. Therefore, it has not been included. For those who
wish to duplicate what it does, basically it clones necessary
structures, creates a process called "* Blanker" and does a
CreateProc() somewhere along the way. Minimal restructuring of the
code may be necessary to get it to work properly without the
detach module.
- The modules may seem to be mis-named, but they really aren't.
Blanker.MOD is a generic screen blanker module that you could use
to easily make the program do whatever you want when the screen
blanks.
For those interested in attempting this, you need to only do
the following:
1) Create some type of Procedure with no return values and no
parameters that will be called when the screen blanks. Make sure
that whatever this procedure is aborts and returns whenever a
mouse move or a key press is detected.
2) Go through Blanker.mod and substitute the name of your function
for DoStarBlank() wherever appropriate. There is only one place
where this function gets called, and I've marked it so that
you should be able to find it.
That's all there is to it! StarBlanker.MOD is *NOT* the main
module, it is simply the function that gets called when the screen
blanks.
The StarBlanker.MOD module has a semi-generic substitution for
WritePixel() that I found to be much faster than the Intuition
equivalent. This procedure does NOT work through layers, it writes
directly to a bitmap. It also does not do any clipping.
Note also that the StarBlanker module only updates the screen
when an IntuiTicks message is received, so that it doesn't hog the
processor. The display is much faster if things are just done in a
straight loop, but things are still pleasing at the delayed rate.
Special thanks go to Martin Taillefer for suggesting ideas as to
how this program should work, and for providing the Detach stuff,
as well as the Workbench processing code.
Chris Bailey
03-Jan-90